import { defineStore } from 'pinia'

const useUserStore = defineStore('user', {
  state: () => {
    return {
      userInfo: {
        account: 'test'
      }
    }
  },
  // 持久化存储
  persist: {
    storage: window.localStorage
  }
})

export { useUserStore }
